"
SET NOCOUNT ON;
SET XACT_ABORT ON;
GO

TRUNCATE TABLE [dbo].[" . $WorkSheetName .  "]  ; 

SET IDENTITY_INSERT [dbo].[" . $WorkSheetName .  "] ON;
BEGIN TRANSACTION;
INSERT INTO [dbo].[" . $WorkSheetName .  "] ( 
  
" . $Data . "

COMMIT;

RAISERROR (N\'[dbo].[" . $WorkSheetName .  "]: Insert Batch: 1.....Done!\', 10, 1) WITH NOWAIT;
GO

SET IDENTITY_INSERT [dbo].[" . $WorkSheetName .  "] OFF;

SELECT \'SELECT TOP 5 * FROM [dbo].[" . $WorkSheetName .  "]  ORDER BY 1 DESC ; \' 
SELECT TOP 5 * FROM [dbo].[" . $WorkSheetName .  "]  ORDER BY 1 DESC ;
"

